<?php
/*
This is to show natural stone detail page with relevaent stone categories underneath it.
Author: Najeeb
*/

?>
<div class="archive">
<?php 
if ( have_posts() ) : ?>
<?php  while ( have_posts() ) : the_post();?>

<div class="hentry-meta"><h1><?php the_title(); ?></h1></div>
<section class="general-wrapper product">
<article class="product-detail">
<?php if ( has_post_thumbnail() ) the_post_thumbnail('post-detail'); ?>
<?php the_content()?>
<div class="clearfix"></div><!-- Just to increase height automatically -->
</article>
<?php endwhile?>


<?php get_template_part('template-naturalstone-line')?>

<?php else:?>

<div class="loop">
        <div id="post-0" class="post hentry error404 not-found clear">
            <h2><?php _e( 'Not found', 'unspoken' ); ?></h2>
            <p><?php _e( 'Apologies, but no results were found for the requested criteria. Perhaps searching will help find a related post.', 'unspoken' ); ?></p>
        </div><!-- #post-0 -->
    </div>
    
<?php endif;?>

</section>

</div>
